<template>
  <div class="category-admin">
    <h2>📂 <span>分类管理</span></h2>
    <div class="category-list">
      <!-- 这里将来循环渲染分类项 -->
    </div>
    <button class="q-btn" @click="addCategory">添加分类</button>
  </div>
</template>
<script lang="ts" setup>
// 预留API接口调用位置
function addCategory() {
  alert('添加分类功能待实现')
}
</script>
<style scoped>
.category-admin {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}
h2 {
  font-size: 2.2rem;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  color: #2563eb;
  margin-bottom: 32px;
  text-shadow: 1px 2px 8px #e3edfa;
  display: flex;
  align-items: center;
  gap: 10px;
}
.q-btn {
  margin-top: 24px;
  background: linear-gradient(90deg, #e3edfa 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  box-shadow: 0 4px 16px 0 rgba(120, 160, 255, 0.10);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.q-btn:hover {
  background: linear-gradient(90deg, #2563eb 0%, #e3edfa 100%);
  color: #2563eb;
  transform: scale(1.04);
}
</style> 